package com.awenhui.demo.model.rbac;

import com.awenhui.demo.core.validation.annotation.PhoneNo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author yuxf
 * @version 1.0
 * @date 2020/5/6 9:47
 */
@ApiModel(value = "添加用户模型")
@Data
public class AddUserModel {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id，插入时不填,插入后返回",example = "0")
    private Long userId;

    @ApiModelProperty(value = "用户名",example = "yuxf")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码",example = "123456a")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "邮箱",example = "")
    private String email;

    @ApiModelProperty(value = "手机号",example = "")
    @PhoneNo
    private String mobile;


}